//
//  SetViewController.m
//  OrderFood
//
//  Created by xiaofang wang on 2018/10/22.
//  Copyright © 2018年 zhiyuan. All rights reserved.
//

#import "SetViewController.h"
#import "ModifyViewController.h"
@interface SetViewController ()

@end

@implementation SetViewController

-(void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    self.navigationController.navigationBarHidden = NO;

}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.name = @"设置";
    self.view.backgroundColor = BACKGROUNDCOLOR;
    UIView *subView = [[UIView alloc] initWithFrame:CGRectMake(0, 10, SCREEN_WIDTH, 50)];
    subView.backgroundColor = WHITECOLOR;
    [self.view addSubview:subView];
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(setpassworkAction)];
    [subView addGestureRecognizer:tap];
    
    UILabel *leftLb = [[UILabel alloc] initWithFrame:CGRectMake(15, 0, 80, 50)];
    leftLb.font = FONT(15);
    leftLb.text = @"登录密码";
    [subView addSubview:leftLb];
    
    UIImageView *rightImgView = [[UIImageView alloc] initWithFrame:CGRectMake(SCREEN_WIDTH-22, 19, 7, 12)];
    rightImgView.image = IMAGE(@"more");
    rightImgView.userInteractionEnabled = YES;
    [subView addSubview:rightImgView];
    
}
-(void)setpassworkAction{
    ModifyViewController *vc = [ModifyViewController new];
    vc.hidesBottomBarWhenPushed = YES;
    [self.navigationController pushViewController:vc animated:YES];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
